package com.wx.day04.aop01.Calculateimpl;

import com.wx.day04.aop01.Calculate;
import org.springframework.stereotype.Service;

import java.awt.*;

@Service
public class Calculateimpl implements Calculate {
    @Override
    public Integer multiply(int a, int b) {
        System.out.println("target: " + a + "..." + b + " time is : " + System.currentTimeMillis());
        return a * b;
    }

    @Override
    public Integer divide(int a, int b) {
        System.out.println("target: " + a + "..." + b + " time is : " + System.currentTimeMillis());
        return a / b;
    }

    @Override
    public Integer subtract(int a, int b) {
        System.out.println("target: " + a + "..." + b + " time is : " + System.currentTimeMillis());
        return a - b;
    }

    @Override
    public Integer add(int a, int b) {
        System.out.println("target: " + a + "..." + b + " time is : " + System.currentTimeMillis());
        return  a + b;
    }
}
